package com.itheima.case2.service.impl;

import com.itheima.case2.dao.RoleMapper;
import com.itheima.case2.pojo.Role;
import com.itheima.case2.service.RoleService;
import com.itheima.case2.utils.SqlSessionUtil;

import java.util.List;

public class RoleServiceImpl implements RoleService {


    @Override
    public List<Role> findAllRoles() {
        RoleMapper rolemapper= SqlSessionUtil.getProxyMapper(RoleMapper.class);
        List<Role> list=rolemapper.findAllRoles();
        return list;
    }
}
